﻿using Autodesk.AutoCAD.ApplicationServices;
using Autodesk.AutoCAD.DatabaseServices;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using XS.Tunnel.Cad.SteelBracing;
using XS.Tunnel.Cad.SteelBracing.Component;
using XS.Tunnel.Cad.SteelBracing.Component.SteelShotcrete;
using XS.Tunnel.Cad.SteelBracing.Component.SteelShotcrete.GrilleComponent;
using XS.Tunnel.Cad.SteelBracing.Component.SteelShotcrete.UniversalBeamComponent;
using XS.Tunnel.Cad.SteelBracing.Infrastructure;
using XS.Tunnel.Cad.SteelBracing.Infrastructure.Extensions;

namespace Demo
{
    public class SteelBracingCommand
    {


        /// <summary>
        ///  傻瓜式用法
        /// </summary>
        [Autodesk.AutoCAD.Runtime.CommandMethod("test")]
        public void Test()
        {
            var d = GetData();
            var component = new UniversalBeamBuild(d.DarkHoleInfo, d.Points, d.UniversalBeamParam);
            component.Build();
            component.Draw();

        }
        /// <summary>
        /// 初级用法  推荐
        /// </summary>
        [Autodesk.AutoCAD.Runtime.CommandMethod("test2")]
        public void Test2()
        {
            var d = GetData();
            var component = new UniversalBeamBuild(d.DarkHoleInfo, d.Points, d.UniversalBeamParam);
            component.Build();

            //拱圈的 弧
            foreach (var curve in component.ArchRingContour)
            {
                foreach (var item in curve.Value)
                {
                    //   ContourLineType  枚举   OuterContour（外轮廓）  InnerContour（内轮廓） DottedContour（中间的虚线）   
                    if (curve.Key == ContourLineType.DottedContour)
                    {
                        item.Color = "#ffff00".ToColor();
                    }
                    else
                    {
                        item.Color = "#00ff00".ToColor();
                    }
                    Drawing(item);
                }
            }
            foreach (var curve in component.InvertedArchContour)
            {
                foreach (var item in curve.Value)
                {
                    if (curve.Key == ContourLineType.DottedContour)
                    {
                        item.Color = "#ffff00".ToColor();
                    }
                    else
                    {
                        item.Color = "#00ff00".ToColor();
                    }
                    Drawing(item);
                }
            }


            ////创建钢板
            foreach (var line in component.SteelPlateList)
            {
                line.Color = "#FF00FF".ToColor();
                Drawing(line);
            }
        }


        /****
         * 高级用法
         * 
         * 首先创建个类 ，然后继承 UniversalBeamBuild 类
         * 然后可以自己做一些处理
         * 
         * ****/




        /// <summary>
        /// 格栅
        /// </summary>
        [Autodesk.AutoCAD.Runtime.CommandMethod("test3")]
        public void Test3()
        {

            var d1 = 格栅("308739130211173637", "417539010706015493", grille: RectangleGrille()); //type: ColumnArchFootType.LargeCornerJoin    // 宝塔  七心圆  大拐角
            var d2 = 格栅("306995278794196229", "329129307811087621", 200, 0, grille: RectangleGrille());  //秦岭   单心圆
            var d3 = 格栅("306995278794196229", "330476630101198085", 400, 0, grille: GetFigureOfEightGrille());  // 八字节  秦岭   七星圆
            var d4 = 格栅("306995278794196229", "329130019206989061", 600, 0, grille: RectangleGrille());  //秦岭   三星圆




            //绘制格栅(d1);
            绘制格栅(d2);
            绘制格栅(d3);
            //绘制格栅(d4);

        }








        public void Draw(TestData d)
        {
            var component = new UniversalBeamBuild(d.DarkHoleInfo, d.Points, d.Param);
            component.Build();
            component.Draw();
        }

        public void 绘制格栅(TestData d)
        {
            try
            {
                var component = new GrilleBuild(d.DarkHoleInfo, d.Points, d.Param);
                component.Build();
                component.Draw();
            }
            catch (FriendlyException ex)
            {
                Application.ShowAlertDialog(ex.Message);
            }


        }


        public Grille RectangleGrille(double num = 10)
        {

            return new RectangleGrille
            {
                URebar = new URebar
                {
                    Height = 25 / num,
                    Width = 30 / num,
                },
                HorizontalTopLength = 15 / num,   //9   //15
                HorizontalBottomLength = 4.5 / num,
                Height = 25 / num,
                SidelingHorizontalLength = 25 / num,
                Stirrup = new Stirrup
                {
                    Height = 30 / num,
                    Interval = 35 / num
                }
            };
        }

        public Grille GetFigureOfEightGrille(double num = 10)
        {
            double interval = 35;

            return new FigureOfEightGrille
            {
                URebar = new URebar
                {
                    Height = 25 / num,
                    Width = 30 / num,
                },
                Height = 25 / num,
                Interval = 5 / num,
                Width = (interval - 4) / num,
                Stirrup = new Stirrup
                {
                    Height = 30 / num,
                    Interval = interval / num
                }
            };
        }

        public TestData 型钢数据(string pid, string id, double x = 0, double y = 0, ColumnArchFootType type = ColumnArchFootType.ExtendBluntJoin, double num = 10)
        {

            if (string.IsNullOrEmpty(pid))
            {
                pid = "306995278794196229";
            }
            var darkinfo = GetDark();
            var param = GetParam(num);
            darkinfo.ColumnArchFootType = type;
            var list = GetPoints(pid, id, x, y, num);
            return new TestData(darkinfo, list, param);
        }

        /// <summary>
        /// 
        /// </summary>
        /// <param name="pid"></param>
        /// <param name="id"></param>
        /// <param name="x">x偏移  就是标高</param>
        /// <param name="y">y 偏移  就是标高</param>
        /// <param name="grille"></param>
        /// <param name="type"></param>
        /// <param name="num"></param>
        /// <returns></returns>
        public TestData 格栅(string pid, string id, double x = 0, double y = 0, Grille grille = null, ColumnArchFootType type = ColumnArchFootType.ExtendBluntJoin, double num = 10)
        {

            if (string.IsNullOrEmpty(pid))
            {
                pid = "306995278794196229";
            }
            var darkinfo = GetDark();
            var param = GetGrilleParam(num, grille);
            darkinfo.ColumnArchFootType = type;
            var list = GetPoints(pid, id, x, y, num);
            return new TestData(darkinfo, list, param);
        }


        public List<ISysPoint> GetPoints(string pid, string id, double x = 0, double y = 0, double num = 10)
        {
            var d = "[{\"id\":\"402312616061437189\",\"darkHoleDesignId\":\"329129307811087621\",\"projectMajorInfoId\":\"306995278794196229\",\"basisStruSetId\":\"355255885888488709\",\"formulaId\":\"324808479757829381\",\"designParameterConf\":\"315351282887951621\",\"bizType\":null,\"bizId\":null,\"liningCrossSectionType\":\"319631070460904709\",\"tunnelStructureType\":\"305231451807286533\",\"tunnelStructureTypeName\":\"主洞\",\"setInvertedArch\":null,\"centerType\":\"308379724583798021\",\"archFootType\":\"298326467492709637\",\"columnCircleNumber\":null,\"columnArchFootType\":\"319633615535211781\",\"columnArchFootTypeName\":\"边墙仰拱倒圆角顺接\",\"imgNu\":\"1\",\"imgName\":\"1\",\"componentBizTpye\":\"325079772596012293\",\"componentBizTpyeName\":\"二次衬砌外轮廓\",\"componentBizTpyeCode\":\"secondaryLiningOuterContour\",\"versionRnumber\":null,\"versionId\":null,\"arcName\":\"308380703760844037\",\"arcNameText\":\"右拱脚圆弧\",\"arcNameCode\":\"rightFootArchArc\",\"arcSort\":1,\"arcCenterName\":\"O3\",\"lineType\":1,\"circleRadius\":245.00000000,\"abscissa\":377.27229771,\"ordinate\":70.31509121,\"point2X\":null,\"point2Y\":null,\"totalAngle\":41.27871200,\"startAngle\":298.13758064,\"endAngle\":339.41629264,\"sortCode\":1},{\"id\":\"402312616099185943\",\"darkHoleDesignId\":\"329129307811087621\",\"projectMajorInfoId\":\"306995278794196229\",\"basisStruSetId\":\"355255885888488709\",\"formulaId\":\"349812766489445637\",\"designParameterConf\":\"315351282887951621\",\"bizType\":null,\"bizId\":null,\"liningCrossSectionType\":\"319631070460904709\",\"tunnelStructureType\":\"305231451807286533\",\"tunnelStructureTypeName\":\"主洞\",\"setInvertedArch\":null,\"centerType\":\"308379724583798021\",\"archFootType\":\"298326467492709637\",\"columnCircleNumber\":null,\"columnArchFootType\":\"319633615535211781\",\"columnArchFootTypeName\":\"边墙仰拱倒圆角顺接\",\"imgNu\":\"1\",\"imgName\":\"1\",\"componentBizTpye\":\"325079772596012293\",\"componentBizTpyeName\":\"二次衬砌外轮廓\",\"componentBizTpyeCode\":\"secondaryLiningOuterContour\",\"versionRnumber\":null,\"versionId\":null,\"arcName\":\"308381084293268741\",\"arcNameText\":\"拱顶圆弧\",\"arcNameCode\":\"vaultArc\",\"arcSort\":2,\"arcCenterName\":\"O1\",\"lineType\":1,\"circleRadius\":648.00000000,\"abscissa\":0.00000000,\"ordinate\":212.00000000,\"point2X\":null,\"point2Y\":null,\"totalAngle\":221.16741471,\"startAngle\":-20.58370736,\"endAngle\":200.58370736,\"sortCode\":2},{\"id\":\"402312616099185925\",\"darkHoleDesignId\":\"329129307811087621\",\"projectMajorInfoId\":\"306995278794196229\",\"basisStruSetId\":\"355255885888488709\",\"formulaId\":\"325073516162450693\",\"designParameterConf\":\"315351282887951621\",\"bizType\":null,\"bizId\":null,\"liningCrossSectionType\":\"319631070460904709\",\"tunnelStructureType\":\"305231451807286533\",\"tunnelStructureTypeName\":\"主洞\",\"setInvertedArch\":null,\"centerType\":\"308379724583798021\",\"archFootType\":\"298326467492709637\",\"columnCircleNumber\":null,\"columnArchFootType\":\"319633615535211781\",\"columnArchFootTypeName\":\"边墙仰拱倒圆角顺接\",\"imgNu\":\"1\",\"imgName\":\"1\",\"componentBizTpye\":\"325079772596012293\",\"componentBizTpyeName\":\"二次衬砌外轮廓\",\"componentBizTpyeCode\":\"secondaryLiningOuterContour\",\"versionRnumber\":null,\"versionId\":null,\"arcName\":\"308381411281208581\",\"arcNameText\":\"左拱脚圆弧\",\"arcNameCode\":\"leftFootArchArc\",\"arcSort\":3,\"arcCenterName\":\"O3‘\",\"lineType\":1,\"circleRadius\":245.00000000,\"abscissa\":-377.27229771,\"ordinate\":70.31509121,\"point2X\":null,\"point2Y\":null,\"totalAngle\":41.27871200,\"startAngle\":200.58370736,\"endAngle\":241.86241936,\"sortCode\":3},{\"id\":\"402312616099185926\",\"darkHoleDesignId\":\"329129307811087621\",\"projectMajorInfoId\":\"306995278794196229\",\"basisStruSetId\":\"355255885888488709\",\"formulaId\":\"325073983152063749\",\"designParameterConf\":\"315351282887951621\",\"bizType\":null,\"bizId\":null,\"liningCrossSectionType\":\"319631070460904709\",\"tunnelStructureType\":\"305231451807286533\",\"tunnelStructureTypeName\":\"主洞\",\"setInvertedArch\":null,\"centerType\":\"308379724583798021\",\"archFootType\":\"298326467492709637\",\"columnCircleNumber\":null,\"columnArchFootType\":\"319633615535211781\",\"columnArchFootTypeName\":\"边墙仰拱倒圆角顺接\",\"imgNu\":\"1\",\"imgName\":\"1\",\"componentBizTpye\":\"325079772596012293\",\"componentBizTpyeName\":\"二次衬砌外轮廓\",\"componentBizTpyeCode\":\"secondaryLiningOuterContour\",\"versionRnumber\":null,\"versionId\":null,\"arcName\":\"308381452418942213\",\"arcNameText\":\"仰拱圆弧\",\"arcNameCode\":\"invertedArchArc\",\"arcSort\":4,\"arcCenterName\":\"O2\",\"lineType\":1,\"circleRadius\":1045.00000000,\"abscissa\":0.00000000,\"ordinate\":775.76928064,\"point2X\":null,\"point2Y\":null,\"totalAngle\":56.27516129,\"startAngle\":241.86241936,\"endAngle\":298.13758064,\"sortCode\":4},{\"id\":\"402312616099185939\",\"darkHoleDesignId\":\"329129307811087621\",\"projectMajorInfoId\":\"306995278794196229\",\"basisStruSetId\":\"355255885888488709\",\"formulaId\":\"332277226445735173\",\"designParameterConf\":\"315354935669556485\",\"bizType\":null,\"bizId\":null,\"liningCrossSectionType\":\"319631070460904709\",\"tunnelStructureType\":\"305231451807286533\",\"tunnelStructureTypeName\":\"主洞\",\"setInvertedArch\":null,\"centerType\":\"308379724583798021\",\"archFootType\":\"298326467492709637\",\"columnCircleNumber\":null,\"columnArchFootType\":\"319633615535211781\",\"columnArchFootTypeName\":\"边墙仰拱倒圆角顺接\",\"imgNu\":\"2\",\"imgName\":\"2\",\"componentBizTpye\":\"325079922190058757\",\"componentBizTpyeName\":\"初期支护内轮廓\",\"componentBizTpyeCode\":\"primarySupportInnerContour\",\"versionRnumber\":null,\"versionId\":null,\"arcName\":\"325115515372569861\",\"arcNameText\":\"右水平线\",\"arcNameCode\":\"rightHorizon\",\"arcSort\":1,\"arcCenterName\":\"L5\",\"lineType\":0,\"circleRadius\":null,\"abscissa\":572.27905072,\"ordinate\":-78.00000000,\"point2X\":581.00406676,\"point2Y\":-78.00000000,\"totalAngle\":null,\"startAngle\":null,\"endAngle\":null,\"sortCode\":5},{\"id\":\"402312616099185927\",\"darkHoleDesignId\":\"329129307811087621\",\"projectMajorInfoId\":\"306995278794196229\",\"basisStruSetId\":\"355255885888488709\",\"formulaId\":\"325113479109281029\",\"designParameterConf\":\"315354935669556485\",\"bizType\":null,\"bizId\":null,\"liningCrossSectionType\":\"319631070460904709\",\"tunnelStructureType\":\"305231451807286533\",\"tunnelStructureTypeName\":\"主洞\",\"setInvertedArch\":null,\"centerType\":\"308379724583798021\",\"archFootType\":\"298326467492709637\",\"columnCircleNumber\":null,\"columnArchFootType\":\"319633615535211781\",\"columnArchFootTypeName\":\"边墙仰拱倒圆角顺接\",\"imgNu\":\"2\",\"imgName\":\"2\",\"componentBizTpye\":\"325079922190058757\",\"componentBizTpyeName\":\"初期支护内轮廓\",\"componentBizTpyeCode\":\"primarySupportInnerContour\",\"versionRnumber\":null,\"versionId\":null,\"arcName\":\"308380703760844037\",\"arcNameText\":\"右拱脚圆弧\",\"arcNameCode\":\"rightFootArchArc\",\"arcSort\":2,\"arcCenterName\":\"O3\",\"lineType\":1,\"circleRadius\":252.00000000,\"abscissa\":377.27229771,\"ordinate\":70.31509121,\"point2X\":null,\"point2Y\":null,\"totalAngle\":15.47060997,\"startAngle\":323.94568267,\"endAngle\":339.41629264,\"sortCode\":6},{\"id\":\"402312616099185928\",\"darkHoleDesignId\":\"329129307811087621\",\"projectMajorInfoId\":\"306995278794196229\",\"basisStruSetId\":\"355255885888488709\",\"formulaId\":\"325114281630631173\",\"designParameterConf\":\"315354935669556485\",\"bizType\":null,\"bizId\":null,\"liningCrossSectionType\":\"319631070460904709\",\"tunnelStructureType\":\"305231451807286533\",\"tunnelStructureTypeName\":\"主洞\",\"setInvertedArch\":null,\"centerType\":\"308379724583798021\",\"archFootType\":\"298326467492709637\",\"columnCircleNumber\":null,\"columnArchFootType\":\"319633615535211781\",\"columnArchFootTypeName\":\"边墙仰拱倒圆角顺接\",\"imgNu\":\"2\",\"imgName\":\"2\",\"componentBizTpye\":\"325079922190058757\",\"componentBizTpyeName\":\"初期支护内轮廓\",\"componentBizTpyeCode\":\"primarySupportInnerContour\",\"versionRnumber\":null,\"versionId\":null,\"arcName\":\"308381084293268741\",\"arcNameText\":\"拱顶圆弧\",\"arcNameCode\":\"vaultArc\",\"arcSort\":3,\"arcCenterName\":\"O1\",\"lineType\":1,\"circleRadius\":655.00000000,\"abscissa\":0.00000000,\"ordinate\":212.00000000,\"point2X\":null,\"point2Y\":null,\"totalAngle\":221.16741471,\"startAngle\":-20.58370736,\"endAngle\":200.58370736,\"sortCode\":7},{\"id\":\"402312616099185929\",\"darkHoleDesignId\":\"329129307811087621\",\"projectMajorInfoId\":\"306995278794196229\",\"basisStruSetId\":\"355255885888488709\",\"formulaId\":\"325114613433632005\",\"designParameterConf\":\"315354935669556485\",\"bizType\":null,\"bizId\":null,\"liningCrossSectionType\":\"319631070460904709\",\"tunnelStructureType\":\"305231451807286533\",\"tunnelStructureTypeName\":\"主洞\",\"setInvertedArch\":null,\"centerType\":\"308379724583798021\",\"archFootType\":\"298326467492709637\",\"columnCircleNumber\":null,\"columnArchFootType\":\"319633615535211781\",\"columnArchFootTypeName\":\"边墙仰拱倒圆角顺接\",\"imgNu\":\"2\",\"imgName\":\"2\",\"componentBizTpye\":\"325079922190058757\",\"componentBizTpyeName\":\"初期支护内轮廓\",\"componentBizTpyeCode\":\"primarySupportInnerContour\",\"versionRnumber\":null,\"versionId\":null,\"arcName\":\"308381411281208581\",\"arcNameText\":\"左拱脚圆弧\",\"arcNameCode\":\"leftFootArchArc\",\"arcSort\":4,\"arcCenterName\":\"O3‘\",\"lineType\":1,\"circleRadius\":252.00000000,\"abscissa\":-377.27229771,\"ordinate\":70.31509121,\"point2X\":null,\"point2Y\":null,\"totalAngle\":15.47060997,\"startAngle\":200.58370736,\"endAngle\":216.05431733,\"sortCode\":8},{\"id\":\"402312616099185940\",\"darkHoleDesignId\":\"329129307811087621\",\"projectMajorInfoId\":\"306995278794196229\",\"basisStruSetId\":\"355255885888488709\",\"formulaId\":\"332277769423553797\",\"designParameterConf\":\"315354935669556485\",\"bizType\":null,\"bizId\":null,\"liningCrossSectionType\":\"319631070460904709\",\"tunnelStructureType\":\"305231451807286533\",\"tunnelStructureTypeName\":\"主洞\",\"setInvertedArch\":null,\"centerType\":\"308379724583798021\",\"archFootType\":\"298326467492709637\",\"columnCircleNumber\":null,\"columnArchFootType\":\"319633615535211781\",\"columnArchFootTypeName\":\"边墙仰拱倒圆角顺接\",\"imgNu\":\"2\",\"imgName\":\"2\",\"componentBizTpye\":\"325079922190058757\",\"componentBizTpyeName\":\"初期支护内轮廓\",\"componentBizTpyeCode\":\"primarySupportInnerContour\",\"versionRnumber\":null,\"versionId\":null,\"arcName\":\"325115349840168197\",\"arcNameText\":\"左水平线\",\"arcNameCode\":\"leftHorizon\",\"arcSort\":5,\"arcCenterName\":\"L5'\",\"lineType\":0,\"circleRadius\":null,\"abscissa\":-581.00406676,\"ordinate\":-78.00000000,\"point2X\":-572.27905072,\"point2Y\":-78.00000000,\"totalAngle\":null,\"startAngle\":null,\"endAngle\":null,\"sortCode\":9},{\"id\":\"402312616099185941\",\"darkHoleDesignId\":\"329129307811087621\",\"projectMajorInfoId\":\"306995278794196229\",\"basisStruSetId\":\"355255885888488709\",\"formulaId\":\"332287477442151685\",\"designParameterConf\":\"315354935669556485\",\"bizType\":null,\"bizId\":null,\"liningCrossSectionType\":\"319631070460904709\",\"tunnelStructureType\":\"305231451807286533\",\"tunnelStructureTypeName\":\"主洞\",\"setInvertedArch\":null,\"centerType\":\"308379724583798021\",\"archFootType\":\"298326467492709637\",\"columnCircleNumber\":null,\"columnArchFootType\":\"319633615535211781\",\"columnArchFootTypeName\":\"边墙仰拱倒圆角顺接\",\"imgNu\":\"2\",\"imgName\":\"2\",\"componentBizTpye\":\"325079922190058757\",\"componentBizTpyeName\":\"初期支护内轮廓\",\"componentBizTpyeCode\":\"primarySupportInnerContour\",\"versionRnumber\":null,\"versionId\":null,\"arcName\":\"348267558782108933\",\"arcNameText\":\"左拱脚圆弧下\",\"arcNameCode\":\"leftFootArchArcDown\",\"arcSort\":6,\"arcCenterName\":\"O4'\",\"lineType\":1,\"circleRadius\":245.00000000,\"abscissa\":-377.27229771,\"ordinate\":70.31509121,\"point2X\":null,\"point2Y\":null,\"totalAngle\":24.60711204,\"startAngle\":217.25530732,\"endAngle\":241.86241936,\"sortCode\":10},{\"id\":\"402312616099185930\",\"darkHoleDesignId\":\"329129307811087621\",\"projectMajorInfoId\":\"306995278794196229\",\"basisStruSetId\":\"355255885888488709\",\"formulaId\":\"325114875120452869\",\"designParameterConf\":\"315354935669556485\",\"bizType\":null,\"bizId\":null,\"liningCrossSectionType\":\"319631070460904709\",\"tunnelStructureType\":\"305231451807286533\",\"tunnelStructureTypeName\":\"主洞\",\"setInvertedArch\":null,\"centerType\":\"308379724583798021\",\"archFootType\":\"298326467492709637\",\"columnCircleNumber\":null,\"columnArchFootType\":\"319633615535211781\",\"columnArchFootTypeName\":\"边墙仰拱倒圆角顺接\",\"imgNu\":\"2\",\"imgName\":\"2\",\"componentBizTpye\":\"325079922190058757\",\"componentBizTpyeName\":\"初期支护内轮廓\",\"componentBizTpyeCode\":\"primarySupportInnerContour\",\"versionRnumber\":null,\"versionId\":null,\"arcName\":\"308381452418942213\",\"arcNameText\":\"仰拱圆弧\",\"arcNameCode\":\"invertedArchArc\",\"arcSort\":7,\"arcCenterName\":\"O2\",\"lineType\":1,\"circleRadius\":1045.00000000,\"abscissa\":0.00000000,\"ordinate\":775.76928064,\"point2X\":null,\"point2Y\":null,\"totalAngle\":56.27516129,\"startAngle\":241.86241936,\"endAngle\":298.13758064,\"sortCode\":11},{\"id\":\"402312616099185942\",\"darkHoleDesignId\":\"329129307811087621\",\"projectMajorInfoId\":\"306995278794196229\",\"basisStruSetId\":\"355255885888488709\",\"formulaId\":\"332287667884524805\",\"designParameterConf\":\"315354935669556485\",\"bizType\":null,\"bizId\":null,\"liningCrossSectionType\":\"319631070460904709\",\"tunnelStructureType\":\"305231451807286533\",\"tunnelStructureTypeName\":\"主洞\",\"setInvertedArch\":null,\"centerType\":\"308379724583798021\",\"archFootType\":\"298326467492709637\",\"columnCircleNumber\":null,\"columnArchFootType\":\"319633615535211781\",\"columnArchFootTypeName\":\"边墙仰拱倒圆角顺接\",\"imgNu\":\"2\",\"imgName\":\"2\",\"componentBizTpye\":\"325079922190058757\",\"componentBizTpyeName\":\"初期支护内轮廓\",\"componentBizTpyeCode\":\"primarySupportInnerContour\",\"versionRnumber\":null,\"versionId\":null,\"arcName\":\"348267411629147397\",\"arcNameText\":\"右拱脚圆弧下\",\"arcNameCode\":\"rightFootArchArcDown\",\"arcSort\":8,\"arcCenterName\":\"O4\",\"lineType\":1,\"circleRadius\":245.00000000,\"abscissa\":377.27229771,\"ordinate\":70.31509121,\"point2X\":null,\"point2Y\":null,\"totalAngle\":24.60711204,\"startAngle\":298.13758064,\"endAngle\":322.74469268,\"sortCode\":12},{\"id\":\"402312616099185932\",\"darkHoleDesignId\":\"329129307811087621\",\"projectMajorInfoId\":\"306995278794196229\",\"basisStruSetId\":\"355255885888488709\",\"formulaId\":\"325119401504277765\",\"designParameterConf\":\"315354935669556485\",\"bizType\":null,\"bizId\":null,\"liningCrossSectionType\":\"319631070460904709\",\"tunnelStructureType\":\"305231451807286533\",\"tunnelStructureTypeName\":\"主洞\",\"setInvertedArch\":null,\"centerType\":\"308379724583798021\",\"archFootType\":\"298326467492709637\",\"columnCircleNumber\":null,\"columnArchFootType\":\"319633615535211781\",\"columnArchFootTypeName\":\"边墙仰拱倒圆角顺接\",\"imgNu\":\"3\",\"imgName\":\"3\",\"componentBizTpye\":\"325080076313953541\",\"componentBizTpyeName\":\"初期支护外轮廓\",\"componentBizTpyeCode\":\"primarySupportOuterContour\",\"versionRnumber\":null,\"versionId\":null,\"arcName\":\"325115515372569861\",\"arcNameText\":\"右水平线\",\"arcNameCode\":\"rightHorizon\",\"arcSort\":1,\"arcCenterName\":\"L4\",\"lineType\":0,\"circleRadius\":null,\"abscissa\":581.00406676,\"ordinate\":-78.00000000,\"point2X\":645.23072829,\"point2Y\":-78.00000000,\"totalAngle\":null,\"startAngle\":null,\"endAngle\":null,\"sortCode\":13},{\"id\":\"402312616099185933\",\"darkHoleDesignId\":\"329129307811087621\",\"projectMajorInfoId\":\"306995278794196229\",\"basisStruSetId\":\"355255885888488709\",\"formulaId\":\"325119889004037381\",\"designParameterConf\":\"315354935669556485\",\"bizType\":null,\"bizId\":null,\"liningCrossSectionType\":\"319631070460904709\",\"tunnelStructureType\":\"305231451807286533\",\"tunnelStructureTypeName\":\"主洞\",\"setInvertedArch\":null,\"centerType\":\"308379724583798021\",\"archFootType\":\"298326467492709637\",\"columnCircleNumber\":null,\"columnArchFootType\":\"319633615535211781\",\"columnArchFootTypeName\":\"边墙仰拱倒圆角顺接\",\"imgNu\":\"3\",\"imgName\":\"3\",\"componentBizTpye\":\"325080076313953541\",\"componentBizTpyeName\":\"初期支护外轮廓\",\"componentBizTpyeCode\":\"primarySupportOuterContour\",\"versionRnumber\":null,\"versionId\":null,\"arcName\":\"309484616136262917\",\"arcNameText\":\"右直线圆弧\",\"arcNameCode\":\"rightLineArc\",\"arcSort\":2,\"arcCenterName\":\"L3\",\"lineType\":0,\"circleRadius\":null,\"abscissa\":645.23072829,\"ordinate\":-78.00000000,\"point2X\":673.04606083,\"point2Y\":115.00000000,\"totalAngle\":null,\"startAngle\":null,\"endAngle\":null,\"sortCode\":14},{\"id\":\"402312616099185934\",\"darkHoleDesignId\":\"329129307811087621\",\"projectMajorInfoId\":\"306995278794196229\",\"basisStruSetId\":\"355255885888488709\",\"formulaId\":\"325120022571648261\",\"designParameterConf\":\"315354935669556485\",\"bizType\":null,\"bizId\":null,\"liningCrossSectionType\":\"319631070460904709\",\"tunnelStructureType\":\"305231451807286533\",\"tunnelStructureTypeName\":\"主洞\",\"setInvertedArch\":null,\"centerType\":\"308379724583798021\",\"archFootType\":\"298326467492709637\",\"columnCircleNumber\":null,\"columnArchFootType\":\"319633615535211781\",\"columnArchFootTypeName\":\"边墙仰拱倒圆角顺接\",\"imgNu\":\"3\",\"imgName\":\"3\",\"componentBizTpye\":\"325080076313953541\",\"componentBizTpyeName\":\"初期支护外轮廓\",\"componentBizTpyeCode\":\"primarySupportOuterContour\",\"versionRnumber\":null,\"versionId\":null,\"arcName\":\"308381084293268741\",\"arcNameText\":\"拱顶圆弧\",\"arcNameCode\":\"vaultArc\",\"arcSort\":3,\"arcCenterName\":\"O1\",\"lineType\":1,\"circleRadius\":680.00000000,\"abscissa\":0.00000000,\"ordinate\":212.00000000,\"point2X\":null,\"point2Y\":null,\"totalAngle\":196.40209844,\"startAngle\":-8.20104922,\"endAngle\":188.20104922,\"sortCode\":15},{\"id\":\"402312616099185935\",\"darkHoleDesignId\":\"329129307811087621\",\"projectMajorInfoId\":\"306995278794196229\",\"basisStruSetId\":\"355255885888488709\",\"formulaId\":\"325120128863700229\",\"designParameterConf\":\"315354935669556485\",\"bizType\":null,\"bizId\":null,\"liningCrossSectionType\":\"319631070460904709\",\"tunnelStructureType\":\"305231451807286533\",\"tunnelStructureTypeName\":\"主洞\",\"setInvertedArch\":null,\"centerType\":\"308379724583798021\",\"archFootType\":\"298326467492709637\",\"columnCircleNumber\":null,\"columnArchFootType\":\"319633615535211781\",\"columnArchFootTypeName\":\"边墙仰拱倒圆角顺接\",\"imgNu\":\"3\",\"imgName\":\"3\",\"componentBizTpye\":\"325080076313953541\",\"componentBizTpyeName\":\"初期支护外轮廓\",\"componentBizTpyeCode\":\"primarySupportOuterContour\",\"versionRnumber\":null,\"versionId\":null,\"arcName\":\"309484554765206789\",\"arcNameText\":\"左直线圆弧\",\"arcNameCode\":\"leftLineArc\",\"arcSort\":4,\"arcCenterName\":\"L3‘\",\"lineType\":0,\"circleRadius\":null,\"abscissa\":-673.04606083,\"ordinate\":115.00000000,\"point2X\":-645.23072829,\"point2Y\":-78.00000000,\"totalAngle\":null,\"startAngle\":null,\"endAngle\":null,\"sortCode\":16},{\"id\":\"402312616099185936\",\"darkHoleDesignId\":\"329129307811087621\",\"projectMajorInfoId\":\"306995278794196229\",\"basisStruSetId\":\"355255885888488709\",\"formulaId\":\"325120366550713605\",\"designParameterConf\":\"315354935669556485\",\"bizType\":null,\"bizId\":null,\"liningCrossSectionType\":\"319631070460904709\",\"tunnelStructureType\":\"305231451807286533\",\"tunnelStructureTypeName\":\"主洞\",\"setInvertedArch\":null,\"centerType\":\"308379724583798021\",\"archFootType\":\"298326467492709637\",\"columnCircleNumber\":null,\"columnArchFootType\":\"319633615535211781\",\"columnArchFootTypeName\":\"边墙仰拱倒圆角顺接\",\"imgNu\":\"3\",\"imgName\":\"3\",\"componentBizTpye\":\"325080076313953541\",\"componentBizTpyeName\":\"初期支护外轮廓\",\"componentBizTpyeCode\":\"primarySupportOuterContour\",\"versionRnumber\":null,\"versionId\":null,\"arcName\":\"325115349840168197\",\"arcNameText\":\"左水平线\",\"arcNameCode\":\"leftHorizon\",\"arcSort\":5,\"arcCenterName\":\"L4‘\",\"lineType\":0,\"circleRadius\":null,\"abscissa\":-645.23072829,\"ordinate\":-78.00000000,\"point2X\":-581.00406676,\"point2Y\":-78.00000000,\"totalAngle\":null,\"startAngle\":null,\"endAngle\":null,\"sortCode\":17},{\"id\":\"402312616099185937\",\"darkHoleDesignId\":\"329129307811087621\",\"projectMajorInfoId\":\"306995278794196229\",\"basisStruSetId\":\"355255885888488709\",\"formulaId\":\"325120500101547269\",\"designParameterConf\":\"315354935669556485\",\"bizType\":null,\"bizId\":null,\"liningCrossSectionType\":\"319631070460904709\",\"tunnelStructureType\":\"305231451807286533\",\"tunnelStructureTypeName\":\"主洞\",\"setInvertedArch\":null,\"centerType\":\"308379724583798021\",\"archFootType\":\"298326467492709637\",\"columnCircleNumber\":null,\"columnArchFootType\":\"319633615535211781\",\"columnArchFootTypeName\":\"边墙仰拱倒圆角顺接\",\"imgNu\":\"3\",\"imgName\":\"3\",\"componentBizTpye\":\"325080076313953541\",\"componentBizTpyeName\":\"初期支护外轮廓\",\"componentBizTpyeCode\":\"primarySupportOuterContour\",\"versionRnumber\":null,\"versionId\":null,\"arcName\":\"348267558782108933\",\"arcNameText\":\"左拱脚圆弧下\",\"arcNameCode\":\"leftFootArchArcDown\",\"arcSort\":6,\"arcCenterName\":\"O3‘\",\"lineType\":1,\"circleRadius\":270.00000000,\"abscissa\":-377.27229771,\"ordinate\":70.31509121,\"point2X\":null,\"point2Y\":null,\"totalAngle\":28.54237710,\"startAngle\":213.32004226,\"endAngle\":241.86241936,\"sortCode\":18},{\"id\":\"402312616099185938\",\"darkHoleDesignId\":\"329129307811087621\",\"projectMajorInfoId\":\"306995278794196229\",\"basisStruSetId\":\"355255885888488709\",\"formulaId\":\"325120625909695749\",\"designParameterConf\":\"315354935669556485\",\"bizType\":null,\"bizId\":null,\"liningCrossSectionType\":\"319631070460904709\",\"tunnelStructureType\":\"305231451807286533\",\"tunnelStructureTypeName\":\"主洞\",\"setInvertedArch\":null,\"centerType\":\"308379724583798021\",\"archFootType\":\"298326467492709637\",\"columnCircleNumber\":null,\"columnArchFootType\":\"319633615535211781\",\"columnArchFootTypeName\":\"边墙仰拱倒圆角顺接\",\"imgNu\":\"3\",\"imgName\":\"3\",\"componentBizTpye\":\"325080076313953541\",\"componentBizTpyeName\":\"初期支护外轮廓\",\"componentBizTpyeCode\":\"primarySupportOuterContour\",\"versionRnumber\":null,\"versionId\":null,\"arcName\":\"308381452418942213\",\"arcNameText\":\"仰拱圆弧\",\"arcNameCode\":\"invertedArchArc\",\"arcSort\":7,\"arcCenterName\":\"O2\",\"lineType\":1,\"circleRadius\":1070.00000000,\"abscissa\":0.00000000,\"ordinate\":775.76928064,\"point2X\":null,\"point2Y\":null,\"totalAngle\":56.27516129,\"startAngle\":241.86241936,\"endAngle\":298.13758064,\"sortCode\":19},{\"id\":\"402312616099185931\",\"darkHoleDesignId\":\"329129307811087621\",\"projectMajorInfoId\":\"306995278794196229\",\"basisStruSetId\":\"355255885888488709\",\"formulaId\":\"325117787804534021\",\"designParameterConf\":\"315354935669556485\",\"bizType\":null,\"bizId\":null,\"liningCrossSectionType\":\"319631070460904709\",\"tunnelStructureType\":\"305231451807286533\",\"tunnelStructureTypeName\":\"主洞\",\"setInvertedArch\":null,\"centerType\":\"308379724583798021\",\"archFootType\":\"298326467492709637\",\"columnCircleNumber\":null,\"columnArchFootType\":\"319633615535211781\",\"columnArchFootTypeName\":\"边墙仰拱倒圆角顺接\",\"imgNu\":\"3\",\"imgName\":\"3\",\"componentBizTpye\":\"325080076313953541\",\"componentBizTpyeName\":\"初期支护外轮廓\",\"componentBizTpyeCode\":\"primarySupportOuterContour\",\"versionRnumber\":null,\"versionId\":null,\"arcName\":\"348267411629147397\",\"arcNameText\":\"右拱脚圆弧下\",\"arcNameCode\":\"rightFootArchArcDown\",\"arcSort\":8,\"arcCenterName\":\"O3\",\"lineType\":1,\"circleRadius\":270.00000000,\"abscissa\":377.27229771,\"ordinate\":70.31509121,\"point2X\":null,\"point2Y\":null,\"totalAngle\":28.54237710,\"startAngle\":298.13758064,\"endAngle\":326.67995774,\"sortCode\":20}]";
            //这里我写死了。需要从调用接口获取，坐标数据   api/Client/{MajorPrjectId}/DarkHole/DarkHolePointData/{id}?code={code}
            // 组装成 list<ISyspoint>
            var data = d.ToObject<List<DarkHolePointsOutput>>();
            var list = new List<ISysPoint>();

            foreach (var item in data)
            {
                ISysPoint m = null;
                if (item.lineType == 1)
                {
                    m = new ArcPoint(item.abscissa.Value / num + x, item.ordinate.Value / num + y, item.circleRadius.Value / num, item.startAngle.Value, item.endAngle.Value, item.totalAngle.Value);
                }
                else
                {
                    m = new LinePoint(item.abscissa.Value / num + x, item.ordinate.Value / num + y, item.point2X.Value / num + x, item.point2Y.Value / num + y);
                }
                m.No = item.arcSort;
                m.BizTpyeCode = item.componentBizTpyeCode;
                m.Name = item.arcNameText;
                m.Code = item.arcNameCode;
                list.Add(m);
            }
            return list;
        }

        /// <summary>
        /// 缩放比例
        /// </summary>
        /// <param name="num">缩小倍数</param>
        /// <returns></returns>
        public GrilleParameter GetGrilleParam(double num, Grille grille)
        {
            return new GrilleParameter
            {

                Height = 30 / num,
                Scope = SteelShotcreteScope.Arch,
                Subsection = 3,
                WallInterval = 4 / num,
                AngleIron = new AngleIron
                {
                    Color = "#ADFF2F",// 线的颜色
                    Height = 40 / num,
                    Length = 20 / num,
                    Thickness = 2 / num  //  规格里面的是mm  这里需要的cm
                },
                WallFoot = new SteelPlateParameter
                {

                    Color = "#FF00FF",
                    Count = 1,
                    Length = 40 / num,
                    Thickness = 10 / num,
                    Weight = 20 / num,
                },
                Grille = grille,



            };

        }


        public UniversalBeamParam GetParam(double num)
        {
            var param = new UniversalBeamParam
            {
                // 分段
                Subsection = 4,
                WallInterval = 1 / num,
                UniversalBeamHeight = 100 / 10 / num,  //mm  这里需要cm

                // 钢板 中间的
                Middle = new SteelPlateParameter
                {
                    Count = 2,  // 钢板数量
                    Length = 20 / num, // 长度
                    Thickness = 6 / num, // 厚度
                    Weight = 40 / num  // 宽， 目前没用
                },
                // 侧方钢板
                InvertedJoinWallFoot = new SteelPlateParameter
                {
                    Count = 1,
                    Length = 30 / num,
                    Thickness = 6 / num,
                    Weight = 30 / num
                },
                // 拱墙下面的钢板
                WallFoot = new SteelPlateParameter
                {
                    Count = 1,
                    Length = 20 / num,
                    Thickness = 6 / num,
                    Weight = 40 / num
                },
                Scope = SteelShotcreteScope.FullCrossSection, // 范围
                InvertedArchSubsection = 3, //仰拱分段
            };
            return param;
        }

        public DarkHoleInfo GetDark()
        {
            var darkinfo = new DarkHoleInfo
            {
                Id = "000001",
                ArchFootType = RoundCornerTypeEnum.Round,
                BasisStruSetId = "222333",
                CircleNumber = CircleCenterTypeEnum.SingleHeart,
                ColumnArchFootType = ColumnArchFootType.ExtendBluntJoin,// ColumnArchFootType.LargeCornerJoin, // 大墙脚
                ColumnCircleNumber = CircleCenterTypeEnum.SingleHeart,

                LiningCrossSectionType = LiningCrossSectionTypeEnum.ConstantSection,

                IsSetInvertedArch = true,//
                StructureCategoriesId = "3454",
                StruGaugeId = "32323",
                TrackType = "",
                TunnelStructureType = "2323",
            };

            return darkinfo;
        }





        protected void Drawing(Action<BlockTableRecord, Transaction> action)
        {
            Document doc = Application.DocumentManager.MdiActiveDocument;
            Database db = doc.Database;
            // 开启事务
            using (Transaction trans = db.TransactionManager.StartTransaction())
            {
                //打开块表
                var bt = (BlockTable)trans.GetObject(db.BlockTableId, OpenMode.ForRead);
                //打开块表记录
                var btr = (BlockTableRecord)trans.GetObject(bt[BlockTableRecord.ModelSpace], OpenMode.ForWrite);
                action(btr, trans);
                //事务提交
                trans.Commit();
            }
        }

        protected void Drawing(List<Entity> entities)
        {
            Drawing((btr, trans) =>
            {
                foreach (var item in entities)
                {
                    btr.AppendEntity(item);
                    trans.AddNewlyCreatedDBObject(item, true);
                }
            });
        }

        protected void Drawing(params Entity[] entities)
        {
            Drawing(entities.ToList());
        }

        protected void Drawing(params ISysPoint[] entities)
        {
            Drawing(entities.ToEntitys());
        }



        public Data GetData(double num=10)
        {
            //330476630101198085 七星圆   329129307811087621 单心圆

            var d = "[{\"id\":\"402312616061437189\",\"darkHoleDesignId\":\"329129307811087621\",\"projectMajorInfoId\":\"306995278794196229\",\"basisStruSetId\":\"355255885888488709\",\"formulaId\":\"324808479757829381\",\"designParameterConf\":\"315351282887951621\",\"bizType\":null,\"bizId\":null,\"liningCrossSectionType\":\"319631070460904709\",\"tunnelStructureType\":\"305231451807286533\",\"tunnelStructureTypeName\":\"主洞\",\"setInvertedArch\":null,\"centerType\":\"308379724583798021\",\"archFootType\":\"298326467492709637\",\"columnCircleNumber\":null,\"columnArchFootType\":\"319633615535211781\",\"columnArchFootTypeName\":\"边墙仰拱倒圆角顺接\",\"imgNu\":\"1\",\"imgName\":\"1\",\"componentBizTpye\":\"325079772596012293\",\"componentBizTpyeName\":\"二次衬砌外轮廓\",\"componentBizTpyeCode\":\"secondaryLiningOuterContour\",\"versionRnumber\":null,\"versionId\":null,\"arcName\":\"308380703760844037\",\"arcNameText\":\"右拱脚圆弧\",\"arcNameCode\":\"rightFootArchArc\",\"arcSort\":1,\"arcCenterName\":\"O3\",\"lineType\":1,\"circleRadius\":245.00000000,\"abscissa\":377.27229771,\"ordinate\":70.31509121,\"point2X\":null,\"point2Y\":null,\"totalAngle\":41.27871200,\"startAngle\":298.13758064,\"endAngle\":339.41629264,\"sortCode\":1},{\"id\":\"402312616099185943\",\"darkHoleDesignId\":\"329129307811087621\",\"projectMajorInfoId\":\"306995278794196229\",\"basisStruSetId\":\"355255885888488709\",\"formulaId\":\"349812766489445637\",\"designParameterConf\":\"315351282887951621\",\"bizType\":null,\"bizId\":null,\"liningCrossSectionType\":\"319631070460904709\",\"tunnelStructureType\":\"305231451807286533\",\"tunnelStructureTypeName\":\"主洞\",\"setInvertedArch\":null,\"centerType\":\"308379724583798021\",\"archFootType\":\"298326467492709637\",\"columnCircleNumber\":null,\"columnArchFootType\":\"319633615535211781\",\"columnArchFootTypeName\":\"边墙仰拱倒圆角顺接\",\"imgNu\":\"1\",\"imgName\":\"1\",\"componentBizTpye\":\"325079772596012293\",\"componentBizTpyeName\":\"二次衬砌外轮廓\",\"componentBizTpyeCode\":\"secondaryLiningOuterContour\",\"versionRnumber\":null,\"versionId\":null,\"arcName\":\"308381084293268741\",\"arcNameText\":\"拱顶圆弧\",\"arcNameCode\":\"vaultArc\",\"arcSort\":2,\"arcCenterName\":\"O1\",\"lineType\":1,\"circleRadius\":648.00000000,\"abscissa\":0.00000000,\"ordinate\":212.00000000,\"point2X\":null,\"point2Y\":null,\"totalAngle\":221.16741471,\"startAngle\":-20.58370736,\"endAngle\":200.58370736,\"sortCode\":2},{\"id\":\"402312616099185925\",\"darkHoleDesignId\":\"329129307811087621\",\"projectMajorInfoId\":\"306995278794196229\",\"basisStruSetId\":\"355255885888488709\",\"formulaId\":\"325073516162450693\",\"designParameterConf\":\"315351282887951621\",\"bizType\":null,\"bizId\":null,\"liningCrossSectionType\":\"319631070460904709\",\"tunnelStructureType\":\"305231451807286533\",\"tunnelStructureTypeName\":\"主洞\",\"setInvertedArch\":null,\"centerType\":\"308379724583798021\",\"archFootType\":\"298326467492709637\",\"columnCircleNumber\":null,\"columnArchFootType\":\"319633615535211781\",\"columnArchFootTypeName\":\"边墙仰拱倒圆角顺接\",\"imgNu\":\"1\",\"imgName\":\"1\",\"componentBizTpye\":\"325079772596012293\",\"componentBizTpyeName\":\"二次衬砌外轮廓\",\"componentBizTpyeCode\":\"secondaryLiningOuterContour\",\"versionRnumber\":null,\"versionId\":null,\"arcName\":\"308381411281208581\",\"arcNameText\":\"左拱脚圆弧\",\"arcNameCode\":\"leftFootArchArc\",\"arcSort\":3,\"arcCenterName\":\"O3‘\",\"lineType\":1,\"circleRadius\":245.00000000,\"abscissa\":-377.27229771,\"ordinate\":70.31509121,\"point2X\":null,\"point2Y\":null,\"totalAngle\":41.27871200,\"startAngle\":200.58370736,\"endAngle\":241.86241936,\"sortCode\":3},{\"id\":\"402312616099185926\",\"darkHoleDesignId\":\"329129307811087621\",\"projectMajorInfoId\":\"306995278794196229\",\"basisStruSetId\":\"355255885888488709\",\"formulaId\":\"325073983152063749\",\"designParameterConf\":\"315351282887951621\",\"bizType\":null,\"bizId\":null,\"liningCrossSectionType\":\"319631070460904709\",\"tunnelStructureType\":\"305231451807286533\",\"tunnelStructureTypeName\":\"主洞\",\"setInvertedArch\":null,\"centerType\":\"308379724583798021\",\"archFootType\":\"298326467492709637\",\"columnCircleNumber\":null,\"columnArchFootType\":\"319633615535211781\",\"columnArchFootTypeName\":\"边墙仰拱倒圆角顺接\",\"imgNu\":\"1\",\"imgName\":\"1\",\"componentBizTpye\":\"325079772596012293\",\"componentBizTpyeName\":\"二次衬砌外轮廓\",\"componentBizTpyeCode\":\"secondaryLiningOuterContour\",\"versionRnumber\":null,\"versionId\":null,\"arcName\":\"308381452418942213\",\"arcNameText\":\"仰拱圆弧\",\"arcNameCode\":\"invertedArchArc\",\"arcSort\":4,\"arcCenterName\":\"O2\",\"lineType\":1,\"circleRadius\":1045.00000000,\"abscissa\":0.00000000,\"ordinate\":775.76928064,\"point2X\":null,\"point2Y\":null,\"totalAngle\":56.27516129,\"startAngle\":241.86241936,\"endAngle\":298.13758064,\"sortCode\":4},{\"id\":\"402312616099185939\",\"darkHoleDesignId\":\"329129307811087621\",\"projectMajorInfoId\":\"306995278794196229\",\"basisStruSetId\":\"355255885888488709\",\"formulaId\":\"332277226445735173\",\"designParameterConf\":\"315354935669556485\",\"bizType\":null,\"bizId\":null,\"liningCrossSectionType\":\"319631070460904709\",\"tunnelStructureType\":\"305231451807286533\",\"tunnelStructureTypeName\":\"主洞\",\"setInvertedArch\":null,\"centerType\":\"308379724583798021\",\"archFootType\":\"298326467492709637\",\"columnCircleNumber\":null,\"columnArchFootType\":\"319633615535211781\",\"columnArchFootTypeName\":\"边墙仰拱倒圆角顺接\",\"imgNu\":\"2\",\"imgName\":\"2\",\"componentBizTpye\":\"325079922190058757\",\"componentBizTpyeName\":\"初期支护内轮廓\",\"componentBizTpyeCode\":\"primarySupportInnerContour\",\"versionRnumber\":null,\"versionId\":null,\"arcName\":\"325115515372569861\",\"arcNameText\":\"右水平线\",\"arcNameCode\":\"rightHorizon\",\"arcSort\":1,\"arcCenterName\":\"L5\",\"lineType\":0,\"circleRadius\":null,\"abscissa\":572.27905072,\"ordinate\":-78.00000000,\"point2X\":581.00406676,\"point2Y\":-78.00000000,\"totalAngle\":null,\"startAngle\":null,\"endAngle\":null,\"sortCode\":5},{\"id\":\"402312616099185927\",\"darkHoleDesignId\":\"329129307811087621\",\"projectMajorInfoId\":\"306995278794196229\",\"basisStruSetId\":\"355255885888488709\",\"formulaId\":\"325113479109281029\",\"designParameterConf\":\"315354935669556485\",\"bizType\":null,\"bizId\":null,\"liningCrossSectionType\":\"319631070460904709\",\"tunnelStructureType\":\"305231451807286533\",\"tunnelStructureTypeName\":\"主洞\",\"setInvertedArch\":null,\"centerType\":\"308379724583798021\",\"archFootType\":\"298326467492709637\",\"columnCircleNumber\":null,\"columnArchFootType\":\"319633615535211781\",\"columnArchFootTypeName\":\"边墙仰拱倒圆角顺接\",\"imgNu\":\"2\",\"imgName\":\"2\",\"componentBizTpye\":\"325079922190058757\",\"componentBizTpyeName\":\"初期支护内轮廓\",\"componentBizTpyeCode\":\"primarySupportInnerContour\",\"versionRnumber\":null,\"versionId\":null,\"arcName\":\"308380703760844037\",\"arcNameText\":\"右拱脚圆弧\",\"arcNameCode\":\"rightFootArchArc\",\"arcSort\":2,\"arcCenterName\":\"O3\",\"lineType\":1,\"circleRadius\":252.00000000,\"abscissa\":377.27229771,\"ordinate\":70.31509121,\"point2X\":null,\"point2Y\":null,\"totalAngle\":15.47060997,\"startAngle\":323.94568267,\"endAngle\":339.41629264,\"sortCode\":6},{\"id\":\"402312616099185928\",\"darkHoleDesignId\":\"329129307811087621\",\"projectMajorInfoId\":\"306995278794196229\",\"basisStruSetId\":\"355255885888488709\",\"formulaId\":\"325114281630631173\",\"designParameterConf\":\"315354935669556485\",\"bizType\":null,\"bizId\":null,\"liningCrossSectionType\":\"319631070460904709\",\"tunnelStructureType\":\"305231451807286533\",\"tunnelStructureTypeName\":\"主洞\",\"setInvertedArch\":null,\"centerType\":\"308379724583798021\",\"archFootType\":\"298326467492709637\",\"columnCircleNumber\":null,\"columnArchFootType\":\"319633615535211781\",\"columnArchFootTypeName\":\"边墙仰拱倒圆角顺接\",\"imgNu\":\"2\",\"imgName\":\"2\",\"componentBizTpye\":\"325079922190058757\",\"componentBizTpyeName\":\"初期支护内轮廓\",\"componentBizTpyeCode\":\"primarySupportInnerContour\",\"versionRnumber\":null,\"versionId\":null,\"arcName\":\"308381084293268741\",\"arcNameText\":\"拱顶圆弧\",\"arcNameCode\":\"vaultArc\",\"arcSort\":3,\"arcCenterName\":\"O1\",\"lineType\":1,\"circleRadius\":655.00000000,\"abscissa\":0.00000000,\"ordinate\":212.00000000,\"point2X\":null,\"point2Y\":null,\"totalAngle\":221.16741471,\"startAngle\":-20.58370736,\"endAngle\":200.58370736,\"sortCode\":7},{\"id\":\"402312616099185929\",\"darkHoleDesignId\":\"329129307811087621\",\"projectMajorInfoId\":\"306995278794196229\",\"basisStruSetId\":\"355255885888488709\",\"formulaId\":\"325114613433632005\",\"designParameterConf\":\"315354935669556485\",\"bizType\":null,\"bizId\":null,\"liningCrossSectionType\":\"319631070460904709\",\"tunnelStructureType\":\"305231451807286533\",\"tunnelStructureTypeName\":\"主洞\",\"setInvertedArch\":null,\"centerType\":\"308379724583798021\",\"archFootType\":\"298326467492709637\",\"columnCircleNumber\":null,\"columnArchFootType\":\"319633615535211781\",\"columnArchFootTypeName\":\"边墙仰拱倒圆角顺接\",\"imgNu\":\"2\",\"imgName\":\"2\",\"componentBizTpye\":\"325079922190058757\",\"componentBizTpyeName\":\"初期支护内轮廓\",\"componentBizTpyeCode\":\"primarySupportInnerContour\",\"versionRnumber\":null,\"versionId\":null,\"arcName\":\"308381411281208581\",\"arcNameText\":\"左拱脚圆弧\",\"arcNameCode\":\"leftFootArchArc\",\"arcSort\":4,\"arcCenterName\":\"O3‘\",\"lineType\":1,\"circleRadius\":252.00000000,\"abscissa\":-377.27229771,\"ordinate\":70.31509121,\"point2X\":null,\"point2Y\":null,\"totalAngle\":15.47060997,\"startAngle\":200.58370736,\"endAngle\":216.05431733,\"sortCode\":8},{\"id\":\"402312616099185940\",\"darkHoleDesignId\":\"329129307811087621\",\"projectMajorInfoId\":\"306995278794196229\",\"basisStruSetId\":\"355255885888488709\",\"formulaId\":\"332277769423553797\",\"designParameterConf\":\"315354935669556485\",\"bizType\":null,\"bizId\":null,\"liningCrossSectionType\":\"319631070460904709\",\"tunnelStructureType\":\"305231451807286533\",\"tunnelStructureTypeName\":\"主洞\",\"setInvertedArch\":null,\"centerType\":\"308379724583798021\",\"archFootType\":\"298326467492709637\",\"columnCircleNumber\":null,\"columnArchFootType\":\"319633615535211781\",\"columnArchFootTypeName\":\"边墙仰拱倒圆角顺接\",\"imgNu\":\"2\",\"imgName\":\"2\",\"componentBizTpye\":\"325079922190058757\",\"componentBizTpyeName\":\"初期支护内轮廓\",\"componentBizTpyeCode\":\"primarySupportInnerContour\",\"versionRnumber\":null,\"versionId\":null,\"arcName\":\"325115349840168197\",\"arcNameText\":\"左水平线\",\"arcNameCode\":\"leftHorizon\",\"arcSort\":5,\"arcCenterName\":\"L5'\",\"lineType\":0,\"circleRadius\":null,\"abscissa\":-581.00406676,\"ordinate\":-78.00000000,\"point2X\":-572.27905072,\"point2Y\":-78.00000000,\"totalAngle\":null,\"startAngle\":null,\"endAngle\":null,\"sortCode\":9},{\"id\":\"402312616099185941\",\"darkHoleDesignId\":\"329129307811087621\",\"projectMajorInfoId\":\"306995278794196229\",\"basisStruSetId\":\"355255885888488709\",\"formulaId\":\"332287477442151685\",\"designParameterConf\":\"315354935669556485\",\"bizType\":null,\"bizId\":null,\"liningCrossSectionType\":\"319631070460904709\",\"tunnelStructureType\":\"305231451807286533\",\"tunnelStructureTypeName\":\"主洞\",\"setInvertedArch\":null,\"centerType\":\"308379724583798021\",\"archFootType\":\"298326467492709637\",\"columnCircleNumber\":null,\"columnArchFootType\":\"319633615535211781\",\"columnArchFootTypeName\":\"边墙仰拱倒圆角顺接\",\"imgNu\":\"2\",\"imgName\":\"2\",\"componentBizTpye\":\"325079922190058757\",\"componentBizTpyeName\":\"初期支护内轮廓\",\"componentBizTpyeCode\":\"primarySupportInnerContour\",\"versionRnumber\":null,\"versionId\":null,\"arcName\":\"348267558782108933\",\"arcNameText\":\"左拱脚圆弧下\",\"arcNameCode\":\"leftFootArchArcDown\",\"arcSort\":6,\"arcCenterName\":\"O4'\",\"lineType\":1,\"circleRadius\":245.00000000,\"abscissa\":-377.27229771,\"ordinate\":70.31509121,\"point2X\":null,\"point2Y\":null,\"totalAngle\":24.60711204,\"startAngle\":217.25530732,\"endAngle\":241.86241936,\"sortCode\":10},{\"id\":\"402312616099185930\",\"darkHoleDesignId\":\"329129307811087621\",\"projectMajorInfoId\":\"306995278794196229\",\"basisStruSetId\":\"355255885888488709\",\"formulaId\":\"325114875120452869\",\"designParameterConf\":\"315354935669556485\",\"bizType\":null,\"bizId\":null,\"liningCrossSectionType\":\"319631070460904709\",\"tunnelStructureType\":\"305231451807286533\",\"tunnelStructureTypeName\":\"主洞\",\"setInvertedArch\":null,\"centerType\":\"308379724583798021\",\"archFootType\":\"298326467492709637\",\"columnCircleNumber\":null,\"columnArchFootType\":\"319633615535211781\",\"columnArchFootTypeName\":\"边墙仰拱倒圆角顺接\",\"imgNu\":\"2\",\"imgName\":\"2\",\"componentBizTpye\":\"325079922190058757\",\"componentBizTpyeName\":\"初期支护内轮廓\",\"componentBizTpyeCode\":\"primarySupportInnerContour\",\"versionRnumber\":null,\"versionId\":null,\"arcName\":\"308381452418942213\",\"arcNameText\":\"仰拱圆弧\",\"arcNameCode\":\"invertedArchArc\",\"arcSort\":7,\"arcCenterName\":\"O2\",\"lineType\":1,\"circleRadius\":1045.00000000,\"abscissa\":0.00000000,\"ordinate\":775.76928064,\"point2X\":null,\"point2Y\":null,\"totalAngle\":56.27516129,\"startAngle\":241.86241936,\"endAngle\":298.13758064,\"sortCode\":11},{\"id\":\"402312616099185942\",\"darkHoleDesignId\":\"329129307811087621\",\"projectMajorInfoId\":\"306995278794196229\",\"basisStruSetId\":\"355255885888488709\",\"formulaId\":\"332287667884524805\",\"designParameterConf\":\"315354935669556485\",\"bizType\":null,\"bizId\":null,\"liningCrossSectionType\":\"319631070460904709\",\"tunnelStructureType\":\"305231451807286533\",\"tunnelStructureTypeName\":\"主洞\",\"setInvertedArch\":null,\"centerType\":\"308379724583798021\",\"archFootType\":\"298326467492709637\",\"columnCircleNumber\":null,\"columnArchFootType\":\"319633615535211781\",\"columnArchFootTypeName\":\"边墙仰拱倒圆角顺接\",\"imgNu\":\"2\",\"imgName\":\"2\",\"componentBizTpye\":\"325079922190058757\",\"componentBizTpyeName\":\"初期支护内轮廓\",\"componentBizTpyeCode\":\"primarySupportInnerContour\",\"versionRnumber\":null,\"versionId\":null,\"arcName\":\"348267411629147397\",\"arcNameText\":\"右拱脚圆弧下\",\"arcNameCode\":\"rightFootArchArcDown\",\"arcSort\":8,\"arcCenterName\":\"O4\",\"lineType\":1,\"circleRadius\":245.00000000,\"abscissa\":377.27229771,\"ordinate\":70.31509121,\"point2X\":null,\"point2Y\":null,\"totalAngle\":24.60711204,\"startAngle\":298.13758064,\"endAngle\":322.74469268,\"sortCode\":12},{\"id\":\"402312616099185932\",\"darkHoleDesignId\":\"329129307811087621\",\"projectMajorInfoId\":\"306995278794196229\",\"basisStruSetId\":\"355255885888488709\",\"formulaId\":\"325119401504277765\",\"designParameterConf\":\"315354935669556485\",\"bizType\":null,\"bizId\":null,\"liningCrossSectionType\":\"319631070460904709\",\"tunnelStructureType\":\"305231451807286533\",\"tunnelStructureTypeName\":\"主洞\",\"setInvertedArch\":null,\"centerType\":\"308379724583798021\",\"archFootType\":\"298326467492709637\",\"columnCircleNumber\":null,\"columnArchFootType\":\"319633615535211781\",\"columnArchFootTypeName\":\"边墙仰拱倒圆角顺接\",\"imgNu\":\"3\",\"imgName\":\"3\",\"componentBizTpye\":\"325080076313953541\",\"componentBizTpyeName\":\"初期支护外轮廓\",\"componentBizTpyeCode\":\"primarySupportOuterContour\",\"versionRnumber\":null,\"versionId\":null,\"arcName\":\"325115515372569861\",\"arcNameText\":\"右水平线\",\"arcNameCode\":\"rightHorizon\",\"arcSort\":1,\"arcCenterName\":\"L4\",\"lineType\":0,\"circleRadius\":null,\"abscissa\":581.00406676,\"ordinate\":-78.00000000,\"point2X\":645.23072829,\"point2Y\":-78.00000000,\"totalAngle\":null,\"startAngle\":null,\"endAngle\":null,\"sortCode\":13},{\"id\":\"402312616099185933\",\"darkHoleDesignId\":\"329129307811087621\",\"projectMajorInfoId\":\"306995278794196229\",\"basisStruSetId\":\"355255885888488709\",\"formulaId\":\"325119889004037381\",\"designParameterConf\":\"315354935669556485\",\"bizType\":null,\"bizId\":null,\"liningCrossSectionType\":\"319631070460904709\",\"tunnelStructureType\":\"305231451807286533\",\"tunnelStructureTypeName\":\"主洞\",\"setInvertedArch\":null,\"centerType\":\"308379724583798021\",\"archFootType\":\"298326467492709637\",\"columnCircleNumber\":null,\"columnArchFootType\":\"319633615535211781\",\"columnArchFootTypeName\":\"边墙仰拱倒圆角顺接\",\"imgNu\":\"3\",\"imgName\":\"3\",\"componentBizTpye\":\"325080076313953541\",\"componentBizTpyeName\":\"初期支护外轮廓\",\"componentBizTpyeCode\":\"primarySupportOuterContour\",\"versionRnumber\":null,\"versionId\":null,\"arcName\":\"309484616136262917\",\"arcNameText\":\"右直线圆弧\",\"arcNameCode\":\"rightLineArc\",\"arcSort\":2,\"arcCenterName\":\"L3\",\"lineType\":0,\"circleRadius\":null,\"abscissa\":645.23072829,\"ordinate\":-78.00000000,\"point2X\":673.04606083,\"point2Y\":115.00000000,\"totalAngle\":null,\"startAngle\":null,\"endAngle\":null,\"sortCode\":14},{\"id\":\"402312616099185934\",\"darkHoleDesignId\":\"329129307811087621\",\"projectMajorInfoId\":\"306995278794196229\",\"basisStruSetId\":\"355255885888488709\",\"formulaId\":\"325120022571648261\",\"designParameterConf\":\"315354935669556485\",\"bizType\":null,\"bizId\":null,\"liningCrossSectionType\":\"319631070460904709\",\"tunnelStructureType\":\"305231451807286533\",\"tunnelStructureTypeName\":\"主洞\",\"setInvertedArch\":null,\"centerType\":\"308379724583798021\",\"archFootType\":\"298326467492709637\",\"columnCircleNumber\":null,\"columnArchFootType\":\"319633615535211781\",\"columnArchFootTypeName\":\"边墙仰拱倒圆角顺接\",\"imgNu\":\"3\",\"imgName\":\"3\",\"componentBizTpye\":\"325080076313953541\",\"componentBizTpyeName\":\"初期支护外轮廓\",\"componentBizTpyeCode\":\"primarySupportOuterContour\",\"versionRnumber\":null,\"versionId\":null,\"arcName\":\"308381084293268741\",\"arcNameText\":\"拱顶圆弧\",\"arcNameCode\":\"vaultArc\",\"arcSort\":3,\"arcCenterName\":\"O1\",\"lineType\":1,\"circleRadius\":680.00000000,\"abscissa\":0.00000000,\"ordinate\":212.00000000,\"point2X\":null,\"point2Y\":null,\"totalAngle\":196.40209844,\"startAngle\":-8.20104922,\"endAngle\":188.20104922,\"sortCode\":15},{\"id\":\"402312616099185935\",\"darkHoleDesignId\":\"329129307811087621\",\"projectMajorInfoId\":\"306995278794196229\",\"basisStruSetId\":\"355255885888488709\",\"formulaId\":\"325120128863700229\",\"designParameterConf\":\"315354935669556485\",\"bizType\":null,\"bizId\":null,\"liningCrossSectionType\":\"319631070460904709\",\"tunnelStructureType\":\"305231451807286533\",\"tunnelStructureTypeName\":\"主洞\",\"setInvertedArch\":null,\"centerType\":\"308379724583798021\",\"archFootType\":\"298326467492709637\",\"columnCircleNumber\":null,\"columnArchFootType\":\"319633615535211781\",\"columnArchFootTypeName\":\"边墙仰拱倒圆角顺接\",\"imgNu\":\"3\",\"imgName\":\"3\",\"componentBizTpye\":\"325080076313953541\",\"componentBizTpyeName\":\"初期支护外轮廓\",\"componentBizTpyeCode\":\"primarySupportOuterContour\",\"versionRnumber\":null,\"versionId\":null,\"arcName\":\"309484554765206789\",\"arcNameText\":\"左直线圆弧\",\"arcNameCode\":\"leftLineArc\",\"arcSort\":4,\"arcCenterName\":\"L3‘\",\"lineType\":0,\"circleRadius\":null,\"abscissa\":-673.04606083,\"ordinate\":115.00000000,\"point2X\":-645.23072829,\"point2Y\":-78.00000000,\"totalAngle\":null,\"startAngle\":null,\"endAngle\":null,\"sortCode\":16},{\"id\":\"402312616099185936\",\"darkHoleDesignId\":\"329129307811087621\",\"projectMajorInfoId\":\"306995278794196229\",\"basisStruSetId\":\"355255885888488709\",\"formulaId\":\"325120366550713605\",\"designParameterConf\":\"315354935669556485\",\"bizType\":null,\"bizId\":null,\"liningCrossSectionType\":\"319631070460904709\",\"tunnelStructureType\":\"305231451807286533\",\"tunnelStructureTypeName\":\"主洞\",\"setInvertedArch\":null,\"centerType\":\"308379724583798021\",\"archFootType\":\"298326467492709637\",\"columnCircleNumber\":null,\"columnArchFootType\":\"319633615535211781\",\"columnArchFootTypeName\":\"边墙仰拱倒圆角顺接\",\"imgNu\":\"3\",\"imgName\":\"3\",\"componentBizTpye\":\"325080076313953541\",\"componentBizTpyeName\":\"初期支护外轮廓\",\"componentBizTpyeCode\":\"primarySupportOuterContour\",\"versionRnumber\":null,\"versionId\":null,\"arcName\":\"325115349840168197\",\"arcNameText\":\"左水平线\",\"arcNameCode\":\"leftHorizon\",\"arcSort\":5,\"arcCenterName\":\"L4‘\",\"lineType\":0,\"circleRadius\":null,\"abscissa\":-645.23072829,\"ordinate\":-78.00000000,\"point2X\":-581.00406676,\"point2Y\":-78.00000000,\"totalAngle\":null,\"startAngle\":null,\"endAngle\":null,\"sortCode\":17},{\"id\":\"402312616099185937\",\"darkHoleDesignId\":\"329129307811087621\",\"projectMajorInfoId\":\"306995278794196229\",\"basisStruSetId\":\"355255885888488709\",\"formulaId\":\"325120500101547269\",\"designParameterConf\":\"315354935669556485\",\"bizType\":null,\"bizId\":null,\"liningCrossSectionType\":\"319631070460904709\",\"tunnelStructureType\":\"305231451807286533\",\"tunnelStructureTypeName\":\"主洞\",\"setInvertedArch\":null,\"centerType\":\"308379724583798021\",\"archFootType\":\"298326467492709637\",\"columnCircleNumber\":null,\"columnArchFootType\":\"319633615535211781\",\"columnArchFootTypeName\":\"边墙仰拱倒圆角顺接\",\"imgNu\":\"3\",\"imgName\":\"3\",\"componentBizTpye\":\"325080076313953541\",\"componentBizTpyeName\":\"初期支护外轮廓\",\"componentBizTpyeCode\":\"primarySupportOuterContour\",\"versionRnumber\":null,\"versionId\":null,\"arcName\":\"348267558782108933\",\"arcNameText\":\"左拱脚圆弧下\",\"arcNameCode\":\"leftFootArchArcDown\",\"arcSort\":6,\"arcCenterName\":\"O3‘\",\"lineType\":1,\"circleRadius\":270.00000000,\"abscissa\":-377.27229771,\"ordinate\":70.31509121,\"point2X\":null,\"point2Y\":null,\"totalAngle\":28.54237710,\"startAngle\":213.32004226,\"endAngle\":241.86241936,\"sortCode\":18},{\"id\":\"402312616099185938\",\"darkHoleDesignId\":\"329129307811087621\",\"projectMajorInfoId\":\"306995278794196229\",\"basisStruSetId\":\"355255885888488709\",\"formulaId\":\"325120625909695749\",\"designParameterConf\":\"315354935669556485\",\"bizType\":null,\"bizId\":null,\"liningCrossSectionType\":\"319631070460904709\",\"tunnelStructureType\":\"305231451807286533\",\"tunnelStructureTypeName\":\"主洞\",\"setInvertedArch\":null,\"centerType\":\"308379724583798021\",\"archFootType\":\"298326467492709637\",\"columnCircleNumber\":null,\"columnArchFootType\":\"319633615535211781\",\"columnArchFootTypeName\":\"边墙仰拱倒圆角顺接\",\"imgNu\":\"3\",\"imgName\":\"3\",\"componentBizTpye\":\"325080076313953541\",\"componentBizTpyeName\":\"初期支护外轮廓\",\"componentBizTpyeCode\":\"primarySupportOuterContour\",\"versionRnumber\":null,\"versionId\":null,\"arcName\":\"308381452418942213\",\"arcNameText\":\"仰拱圆弧\",\"arcNameCode\":\"invertedArchArc\",\"arcSort\":7,\"arcCenterName\":\"O2\",\"lineType\":1,\"circleRadius\":1070.00000000,\"abscissa\":0.00000000,\"ordinate\":775.76928064,\"point2X\":null,\"point2Y\":null,\"totalAngle\":56.27516129,\"startAngle\":241.86241936,\"endAngle\":298.13758064,\"sortCode\":19},{\"id\":\"402312616099185931\",\"darkHoleDesignId\":\"329129307811087621\",\"projectMajorInfoId\":\"306995278794196229\",\"basisStruSetId\":\"355255885888488709\",\"formulaId\":\"325117787804534021\",\"designParameterConf\":\"315354935669556485\",\"bizType\":null,\"bizId\":null,\"liningCrossSectionType\":\"319631070460904709\",\"tunnelStructureType\":\"305231451807286533\",\"tunnelStructureTypeName\":\"主洞\",\"setInvertedArch\":null,\"centerType\":\"308379724583798021\",\"archFootType\":\"298326467492709637\",\"columnCircleNumber\":null,\"columnArchFootType\":\"319633615535211781\",\"columnArchFootTypeName\":\"边墙仰拱倒圆角顺接\",\"imgNu\":\"3\",\"imgName\":\"3\",\"componentBizTpye\":\"325080076313953541\",\"componentBizTpyeName\":\"初期支护外轮廓\",\"componentBizTpyeCode\":\"primarySupportOuterContour\",\"versionRnumber\":null,\"versionId\":null,\"arcName\":\"348267411629147397\",\"arcNameText\":\"右拱脚圆弧下\",\"arcNameCode\":\"rightFootArchArcDown\",\"arcSort\":8,\"arcCenterName\":\"O3\",\"lineType\":1,\"circleRadius\":270.00000000,\"abscissa\":377.27229771,\"ordinate\":70.31509121,\"point2X\":null,\"point2Y\":null,\"totalAngle\":28.54237710,\"startAngle\":298.13758064,\"endAngle\":326.67995774,\"sortCode\":20}]";
            //这里我写死了。需要从调用接口获取，坐标数据   api/Client/{MajorPrjectId}/DarkHole/DarkHolePointData/{id}?code={code}
            // 组装成 list<ISyspoint>
            var data = d.ToObject<List<DarkHolePointsOutput>>();
            var list = new List<ISysPoint>();
            foreach (var item in data)
            {
                ISysPoint m = null;
                if (item.lineType == 1)
                {
                    m = new ArcPoint(item.abscissa.Value/num, item.ordinate.Value/ num, item.circleRadius.Value / num, item.startAngle.Value, item.endAngle.Value, item.totalAngle.Value);
                }
                else
                {
                    m = new LinePoint(item.abscissa.Value / num, item.ordinate.Value / num, item.point2X.Value / num, item.point2Y.Value / num);
                }
                m.No = item.arcSort;
                m.BizTpyeCode = item.componentBizTpyeCode;
                m.Name = item.arcNameText;
                m.Code = item.arcNameCode;
                list.Add(m);
            }

            // 暗洞的主要信息  这里写死了， 需要获取接口
            var dk = "{\"id\":\"329129307811087621\",\"darkHoleDesignName\":null,\"darkHoleDesignCode\":null,\"projectMajorInfoId\":\"306995278794196229\",\"bizVersionId\":\"324749844780418309\",\"basisStruSetId\":\"355255885888488709\",\"basisStruSetName\":\"单心圆设置仰拱圆弧型\",\"struGaugeId\":\"313953545130870021\",\"tunnelStructureType\":\"305231451807286533\",\"tunnelStructureTypeName\":\"主洞\",\"structureCategoriesId\":\"329126380979619079\",\"circleNumber\":\"308379724583798021\",\"circleNumberName\":\"单心圆\",\"setInvertedArch\":\"309468610496038149\",\"setInvertedArchName\":\"设置仰拱\",\"archFootType\":\"298326467492709637\",\"archFootTypeName\":\"圆弧型\",\"trackType\":\"300865703219561733\",\"trackTypeName\":\"整体道床\",\"liningLevel\":\"Ⅱb\",\"liningLevelName\":null,\"liningCrossSectionType\":\"319631070460904709\",\"liningCrossSectionTypeName\":\"等截面\",\"columnCircleNumber\":\"308379724583798021\",\"columnCircleNumberName\":\"单心圆\",\"columnArchFootType\":\"319633615535211781\",\"columnArchFootTypeName\":\"边墙仰拱倒圆角顺接\",\"constructionMethod\":\"298588662021489925\",\"constructionMethodName\":\"全断面法\",\"isSystemRockBolt\":1,\"isObliqueRadial\":1,\"isSteeFabric\":1,\"isSecondaryLiningReba\":1,\"isForepole\":1,\"isSteelArchShelf\":1,\"isTemporaryLiningSupport\":1}";
            var dark = dk.ToObject<DarkHoleOutput>();
            var darkinfo = new DarkHoleInfo
            {
                Id = dark.id,
                ArchFootType = RoundCornerTypeEnum.Round,
                BasisStruSetId = dark.basisStruSetId,
                CircleNumber = CircleCenterTypeEnum.SingleHeart,
                ColumnArchFootType = ColumnArchFootType.YuanShunJoin,
                ColumnCircleNumber = CircleCenterTypeEnum.SingleHeart,

                LiningCrossSectionType = LiningCrossSectionTypeEnum.ConstantSection,

                IsSetInvertedArch = true,//
                StructureCategoriesId = dark.structureCategoriesId,
                StruGaugeId = dark.struGaugeId,
                TrackType = "",
                TunnelStructureType = dark.tunnelStructureType,
            };
            //以下的数据也是通过接口获取的  
            var param = new UniversalBeamParam
            {
                // 分段
                Subsection = 4,
                WallInterval = 1 / num,
                UniversalBeamHeight = 100 / 10/num,  //mm  这里需要cm

                // 钢板 中间的
                Middle = new SteelPlateParameter
                {
                    Count = 2,  // 钢板数量
                    Length = 20 / num, // 长度
                    Thickness = 6 / num, // 厚度
                    Weight = 40 / num  // 宽， 目前没用
                },
                // 侧方钢板
                InvertedJoinWallFoot = new SteelPlateParameter
                {
                    Count = 2,
                    Length = 30 / num,
                    Thickness = 6 / num,
                    Weight = 30 / num
                },
                // 拱墙下面的钢板
                WallFoot = new SteelPlateParameter
                {
                    Count = 1,
                    Length = 20 / num,
                    Thickness = 6 / num,
                    Weight = 40 / num
                },
                Scope = SteelShotcreteScope.FullCrossSection, // 范围
                InvertedArchSubsection = 3, //仰拱分段
            };

            return new Data(darkinfo, list, param);

        }



    }


    public class Data
    {
        public Data(DarkHoleInfo darkinfo, List<ISysPoint> list, UniversalBeamParam param)
        {
            DarkHoleInfo = darkinfo;
            Points = list;
            UniversalBeamParam = param;
        }
        public DarkHoleInfo DarkHoleInfo { get; set; }
        public List<ISysPoint> Points { get; set; }
        public UniversalBeamParam UniversalBeamParam { get; set; }

    }












   





    public class TestData
    {
        public TestData(DarkHoleInfo darkinfo, List<ISysPoint> list, SteelShotcreteParameter param)
        {
            DarkHoleInfo = darkinfo;
            Points = list;
            Param = param;
        }
        public DarkHoleInfo DarkHoleInfo { get; set; }
        public List<ISysPoint> Points { get; set; }
        public SteelShotcreteParameter Param { get; set; }

    }






    /// <summary>
    /// 返回暗洞轮廓信息 就是为了序列化方便好多字段没用，
    /// </summary>
    public class DarkHolePointsOutput
    {
        public string id { get; set; }
        public string darkHoleDesignId { get; set; }
        /// <summary>
        /// 如主洞
        /// </summary>
        public string tunnelStructureTypeName { get; set; }

        /// <summary>
        /// 如右拱脚圆弧
        /// </summary>
        public string arcNameText { get; set; }

        /// <summary>
        /// X轴（如果是圆弧，为中心点X，如果为直线，为起始点X）
        /// </summary>
        public double? abscissa { get; set; }
        /// <summary>
        /// Y轴（如果是圆弧，为中心点X，如果为直线，为起始点Y）
        /// </summary>
        public double? ordinate { get; set; }

        /// <summary>
        /// 排序
        /// </summary>
        public int arcSort { get; set; }

        /// <summary>
        /// 线的类型（1圆弧）
        /// </summary>
        public int? lineType { get; set; }

        /// <summary>
        /// 半径
        /// </summary>
        public double? circleRadius { get; set; }

        /// <summary>
        ///  X轴（如果是圆弧，为空，如果为直线，为终止点X）
        /// </summary>
        public double? point2X { get; set; }

        /// <summary>
        /// Y轴（如果是圆弧，为空，如果为直线，为终止点Y）
        /// </summary>
        public double? point2Y { get; set; }

        /// <summary>
        /// 总角度
        /// </summary>
        public double? totalAngle { get; set; }
        /// <summary>
        /// 起始角度
        /// </summary>
        public double? startAngle { get; set; }
        /// <summary>
        /// 终止角度
        /// </summary>
        public double? endAngle { get; set; }

        /// <summary>
        /// 内外轮廓区分
        /// </summary>
        public string componentBizTpyeCode { get; set; }
        public string componentBizTpye { get; set; }
        /// <summary>
        /// 线类型（code）
        /// </summary>
        public string arcNameCode { get; set; }
    }


    /// <summary>
    /// 暗洞信息结构   就是为了序列化方便好多字段没用，
    /// </summary>
    public class DarkHoleOutput
    {

        public string id { get; set; }

        /// <summary>
        /// 暗洞设计名称
        /// </summary>
        public string darkHoleDesignName { get; set; }

        /// <summary>
        /// 暗洞设计编号
        /// </summary>
        public string darkHoleDesignCode { get; set; }

        /// <summary>
        /// 专业项目信息id
        /// </summary>
        public string projectMajorInfoId { get; set; }

        /// <summary>
        /// 业务方案版本id
        /// </summary>
        public string bizVersionId { get; set; }

        /// <summary>
        /// 标准参数值id
        /// </summary>
        public string basisStruSetId { get; set; }
        public string basisStruSetName { get; set; }

        /// <summary>
        /// 建筑限界id
        /// </summary>
        public string struGaugeId { get; set; }

        /// <summary>
        /// 结构类别 取数据字典
        /// </summary>
        public string tunnelStructureType { get; set; }
        public string tunnelStructureTypeName { get; set; }

        /// <summary>
        /// 结构类别明细id
        /// </summary>
        public string structureCategoriesId { get; set; }

        /// <summary>
        /// 圆心类型(内轮廓)
        /// </summary>
        public string circleNumber { get; set; }
        public string circleNumberName { get; set; }

        /// <summary>
        /// 设置仰拱(内轮廓)
        /// </summary>
        public string setInvertedArch { get; set; }
        public string setInvertedArchName { get; set; }

        /// <summary>
        /// 拱脚类型(内轮廓)
        /// </summary>
        public string archFootType { get; set; }
        public string archFootTypeName { get; set; }

        /// <summary>
        /// 道床类型(内轮廓)
        /// </summary>
        public string trackType { get; set; }
        public string trackTypeName { get; set; }

        /// <summary>
        /// 衬砌级别  取数据字典
        /// </summary>
        public string liningLevel { get; set; }
        public string liningLevelName { get; set; }

        /// <summary>
        /// 衬砌截面类型
        /// </summary>
        public string liningCrossSectionType { get; set; }
        public string liningCrossSectionTypeName { get; set; }

        /// <summary>
        /// 圆心类型(外轮廓)
        /// </summary>
        public string columnCircleNumber { get; set; }
        public string columnCircleNumberName { get; set; }

        /// <summary>
        /// 衬砌拱脚类型(外轮廓) 取数据字典
        /// </summary>
        public string columnArchFootType { get; set; }
        public string columnArchFootTypeName { get; set; }

        /// <summary>
        /// 衬砌级别施工工法 取数据字典
        /// </summary>
        public string constructionMethod { get; set; }
        public string constructionMethodName { get; set; }

        /// <summary>
        /// 系统锚杆  0 否  1 是
        /// </summary>
        public int? isSystemRockBolt { get; set; }

        /// <summary>
        /// 斜径向注浆  0 否  1 是
        /// </summary>
        public int? isObliqueRadial { get; set; }

        /// <summary>
        /// 钢筋网  0 否  1 是
        /// </summary>
        public int? isSteeFabric { get; set; }

        /// <summary>
        /// 衬砌钢筋布置图  0 否  1 是
        /// </summary>
        public int? isSecondaryLiningReba { get; set; }

        /// <summary>
        /// 衬砌超前支护图  0 否  1 是
        /// </summary>
        public int? isForepole { get; set; }

        /// <summary>
        /// 衬砌钢拱架图  0 否  1 是
        /// </summary>
        public int? isSteelArchShelf { get; set; }

        /// <summary>
        /// 衬砌临时支护图  0 否  1 是
        /// </summary>
        public int? isTemporaryLiningSupport { get; set; }








    }
}
